<?xml version="1.0"
      encoding="UTF-8"
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>文件系统惊魂</title>
<meta name="generator" content="http://txt2tags.sf.net" />
</head>
<body>

<div class="header" id="header">
<a name='toptopNDJMSVBaR' id='toptopNDJMSVBaR'></a><h1>文件系统惊魂</h1>
<h2>-- 幸运的Reiserfs选择！</h2>
</div>

<div class="toc" id="toc">
  <ol>
  <li><a href="#toc1R0VYQ0JaR">事件</a>
    <ul>
    <li><a href="#toc2R0VYRENMU">1.1. 处理</a>
    </li>
    <li><a href="#toc3R0VYREVMU">1.2. fsck</a>
    </li>
    <li><a href="#toc4R0VYREdMU">1.3. 幸运ReiserFS</a>
    </li>
    </ul>
  </li>
  <li><a href="#toc5R0lYQ0JaN">经验.教训</a>
  </li>
  </ol>

</div>
<div class="body" id="body">
<a id="toc1R0VYQ0JaR" name="toc1R0VYQ0JaR"></a>
<h1><A href='#toptopNDJMSVBaR'> 1. 事件 </A></h1>
<p>
<code>* Mounting local filesystem....</code>
</p>
<dl>
<dt>惊慌:</dt><dd>
 <ul>
 <li>稳定运行一周的DELL D620 Laptop under Ubuntu7.04
 </li>
 <li>一回到家开机就停在上述情况不再有反应
 </li>
 </ul>
</dd>
</dl>

<a id="toc2R0VYRENMU" name="toc2R0VYRENMU"></a>
<h2><A href='#toptopNDJMSVBaR'> 1.1. 处理 </A></h2>
<ul>
<li>幸好有系统管理员的朋友依然在线
</li>
<li>幸好家里的 AMD 兼容机 under Ubuntu 6.04 依然工作
</li>
<li>询问,得知得<code>fsck</code> 一下
</li>
</ul>

<a id="toc3R0VYREVMU" name="toc3R0VYREVMU"></a>
<h2><A href='#toptopNDJMSVBaR'> 1.2. fsck </A></h2>
<ul>
<li>幸好随身带着Ubuntu 的DVD!
</li>
<li>启动进入后:
<pre>
$sudo su -
#ls /dev | grep sda
sda 
...
sda11
</pre>
</li>
<li>幸好重装机器时详细的记录了分区信息:
 <ul>
 <li><a href="http://wiki.woodpecker.org.cn/moin/ZoomQuiet/2007-05-08">升级Ubuntu</a>
 </li>
 <li><a href="http://blog.zoomquiet.org/pyblosxom/FLOSS/Ubuntu/upgrade-into-feisty-2007-05-11-13-43">从Dapper到Feisty 的征程</a>
  <ul>
  <li><img align="middle" src="/pybimage/070511_myUbuntu_partition_scrot.png" border="0" alt=""/>
  </li>
  </ul>
 </li>
 </ul>
</li>
<li>所以优先檢查对启动有影响的 <b>/</b>; <b>/usr</b> ;<b>/home</b>
</li>
</ul>

<a id="toc4R0VYREdMU" name="toc4R0VYREdMU"></a>
<h2><A href='#toptopNDJMSVBaR'> 1.3. 幸运ReiserFS </A></h2>
<pre>
#fsck -t reiserfs /dev/sda2
#fsck -t reiserfs /dev/sda11
</pre>
<ul>
<li>果然 <code>/usr</code> 檢查出问题提示进行<code>--rebuild-tree</code>
<pre>
#fsck -t reiserfs --rebuild-tree /dev/sda11
</pre>
</li>
<li>结果不行?! Google 一下,晕的!原来有专用的
<pre>
reiserfsck 
Usage: reiserfsck [mode] [options]  device

Modes:
  --check                       consistency checking (default)
  --fix-fixable                 fix corruptions which can be fixed without 
                                --rebuild-tree
  --rebuild-sb                  super block checking and rebuilding if needed
                                (may require --rebuild-tree afterwards)
  --rebuild-tree                force fsck to rebuild filesystem from scratch
                                (takes a long time)
  --clean-attributes            clean garbage in reserved fields in StatDatas 
Options:
  -j | --journal device         specify journal if relocated
  -B | --badblocks file         file with list of all bad blocks on the fs
  -l | --logfile file           make fsck to complain to specifed file
  -n | --nolog                  make fsck to not complain
  -z | --adjust-size            fix file sizes to real size
  -q | --quiet                  no speed info
  -y | --yes                    no confirmations
  -V                            prints version and exits
  -a and -p                     some light-weight auto checks for bootup
  -f and -r                     ignored
Expert options:
  --no-journal-available        do not open nor replay journal
  -S | --scan-whole-partition   build tree of all blocks of the device
</pre>
</li>
<li>KO! 经过检测,恢复目录树,再小心检查其它目录,没有隐患...
</li>
<li>reboot! 熟悉的界面回来了,没有任何不稳....
</li>
</ul>

<a id="toc5R0lYQ0JaN" name="toc5R0lYQ0JaN"></a>
<h1><A href='#toptopNDJMSVBaR'> 2. 经验.教训 </A></h1>
<ol>
<li>在GNU/Linux 中千万别慌!一切都有着的！
</li>
<li>不论作者如何<code>ReiserFS</code> 绝对是个人用户的守护神哪！
</li>
<li>不论多没可能使用，系统的DVD 光盘一定要带在身边！特别是Ubuntu 系统安装DVD，紧急情况下可以作为LiveCD 直接进行工作的！
</li>
</ol>

<hr class="light" />
<ul>
<li>t2t渲染:: 2010-10-09 02:21:41
</li>
<li>动力源自::<b><a href="http://txt2tags.sf.net">txt2tags</a></b>
</li>
</ul>

<p>
<img align="middle" src="/pybimage/technorati-over.gif" border="0" alt=""/>
    ,<a href="http://www.technorati.com/tags/OpenSource">OpenSource</a>
    ,<a href="http://www.technorati.com/tags/Ubuntu">Ubuntu</a>
</p>
</div>

<!-- xhtml code generated by txt2tags 2.4 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags ./oss/Ubuntu/terror-fs-luckly-reiserfs-2007-06-15-23-43.t2t -->
</body></html>
